package com.dlyk.mapper;

import com.dlyk.model.TProduct;
import com.dlyk.query.BaseQuery;
import com.dlyk.query.ProductQuery;

import java.util.List;

public interface TProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TProduct record);

    int insertSelective(TProduct record);

    TProduct selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TProduct record);

    int updateByPrimaryKey(TProduct record);

    List<TProduct> selectAllOnSaleProduct();

    List<TProduct> selectProductByPage(ProductQuery productQuery);

    TProduct selectDetailById(Integer id);

    int deleteByIds(List<String> idList);
}